cmake_minimum_required(VERSION 2.6)
project(llmake)
set( LLMake_SRC
	llMain.cpp
	llSystemInfo.hpp
	llSystemInfo.cpp
	llOption.hpp
	llOption.cpp
	llToken.hpp
	llToken.cpp
	llLex.hpp
	llLex.cpp
	llSyntax.hpp
	llSyntax.cpp
	llParseCommand.hpp
	llParseCommand.cpp
	llMakeDirectory.hpp
	llMakeDirectory.cpp
	llDependence.hpp
	llDependence.cpp
	llCommandBase.hpp
	llCommandList.hpp
	llCommandList.cpp
	llReporter.hpp
	llReporter.cpp
	)

#add_definitions(-DDEBUG)
add_definitions(-DBOOST_ALL_NO_LIB)
add_definitions(-DBOOST_NO_STD_WSTRING)
set(BoostRoot ../requiredPackage/boost_1_38_0)
include_directories(${BoostRoot})

add_subdirectory( boost_libs )

add_executable ( llmake ${LLMake_SRC} )

if (WIN32)
	target_link_libraries( llmake boostLibs )
else(WIN32)
	target_link_libraries( llmake boostLibs pthread )
endif(WIN32)
